package oxi.bigu.persistence;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceUnit;

import org.springframework.stereotype.Component;

import oxi.bigu.business.Location;

@Component
public class LocationDao {

	@PersistenceContext
	private EntityManager entityManager;
	
	@PersistenceUnit
	private EntityManagerFactory factory;
	

	public void insertLocation(Location location) {
		entityManager.persist(location);
	}

}
